<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CSS综合任务一</title>
    <base href="" target="_blank">
    <style>
        body {
            margin: 0;
            padding: 0;
        }
        /* .ul1 li{
            transform: rotate(-30deg);
        } */
        .ul1 {
            position: fixed;
            background-color: white;
            left: 0;
            top: 0;
            list-style: none;
            position: fixed;
            height: 100%;
            margin: 0;
            padding: 0;
            width: 100%;
            overflow: hidden;
        }

        .ul1 li {
            border-top-right-radius:  12px;
            border-bottom-right-radius:  12px;
            height: 50px;
           
        }
        .ul1 li:nth-child(even){
            animation-name: yidon;
            animation-duration: 4s;
            animation-timing-function:initial;
            
        }
        .ul1 li:nth-child(odd){
            animation-name: yidon;
            animation-duration: 3s;
            animation-timing-function: linear;
            
        }
        
        @keyframes yidon{
            0%{
                width: 0;
            }
            100%{
                width: 100%;
            }
        }
        .font{
            text-decoration: underline;
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%,-50%);
            color: white;
            font-size: 200px;
            font-weight: 700;
            font-style: italic;
        }
        /* 导航 */
        body {
            background-color: rgba(0, 0, 0, 0.9);
        }

        .choose {
            width: 200px;
            text-align: center;

            height: 100px;
            border: 10px solid antiquewhite;
            border-radius: 12px;
            background-color: aqua;
            margin-top: 10px;
            margin-bottom: 10px;
            animation-name: choose;
            animation-duration: 2s;
            animation-delay: 5s;
            animation-timing-function: linear;
            animation-play-state: running;
            

        }

      

        .bor {
            background:linear-gradient(30deg,blue,brown,yellow);
            margin: auto;
            margin-top: 100px;
            border: 10px red solid;
            display: flex;
            width: 600px;
            flex-wrap: wrap;
            justify-content: space-evenly;
        }
        @keyframes choose{
            0%{
                transform: rotateX(0deg)
            }
            100%{
                transform: rotateX(360deg)
            }
        }
        .choose:hover a{
            font-size: 30px;
            color: gray;
        }
        .bor a{
            color: white;
            line-height: 100px;
            font-style: italic;
            font-weight: 600;
            font-size: 20px;
            text-decoration: none;
            cursor: pointer;

        }
        #http{
            border: 10px blue solid;
            display: block;
            border-color: bisque;
            width: 400px;
            height: 100px;
            background-color: aquamarine;
            color: white;
            text-decoration: none;
            
            margin: auto;
        }
    </style>
</head>

<body>
    <div class="bor">
        <div class="choose"><a href="./网页2/盒子与选择器.html">选择器和盒子</a></div>
        <div class="choose"> <a href="./网页2/格式化文本.html">格式化文本</a></div>
        <div class="choose"><a href="./网页2/五角星.html">五角星</a></div>
        <div class="choose"><a href="./网页2/渐变.html">渐变</a></div>
        <div class="choose"> <a href="./网页2/精灵.html">精灵图</a></div>
        <div class="choose"><a href="./网页2/奖状作业.html">奖状作业</a></div>
    </div>
    <a href="https://gitee.com/yihyp/my-first-codebase.git" id="http">码库地址：https://gitee.com/yihyp/my-first-codebase.git</a>
















    <ul class="ul1">
      <li></li>
      <li></li>
      <li></li>
      <li></li>
      <li></li>
      <li></li>
      <li></li>
      <li></li>
      <li></li>
      <li></li>
      <li></li>
      <li></li>
      <li></li>
      <li></li>
      <li></li>
      <li></li>
        <div class="font">Welcome You</div>
    </ul>
    <script>


        function a (){
            for (var i = 0; i < 16; i++) {
            function choice(n) {
                var randomindex = Math.floor(Math.random() * n.length)
                return n[randomindex]
            }
            var bac = ["red", "blue", "yellow", "orange", "black", "green","aqua"]
            var ul1 = document.getElementsByClassName("ul1")[0]
            var li = ul1.getElementsByTagName("li")
            li[i].style.backgroundColor = choice(bac)
            console.log(bac);
            console.log(ul1);
            console.log(li);
        }
        }
        a()
        var ul1 =document.getElementsByClassName("ul1")[0];
        setTimeout(()=>{
            ul1.style.display = "none"
        },5000)
        
    </script>
</body>

</html>